package com.wlf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @BelongsProject: my-product
 * @BelongsPackage: com.wlf
 * @Author: wanglf
 * @CreateTime: 2023-05-16  15:14
 * @Description:
 * @Version: 1.0
 */
@Configuration
public class ProfileConfiguration {

    @Bean
    @Profile("dev")
    public ProfileService profileServiceDev(){
        return new ProfileService("dev");
    }

    @Bean
    @Profile("prd")
    public ProfileService profileServicePrd(){
        return new ProfileService("prd");
    }
}